package com.corpcredit.model;

// Generated Jul 22, 2008 11:56:54 PM by Hibernate Tools 3.2.0.CR1

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Version;

/**
 * Zjpjyj generated by hbm2java
 */
@Entity
@Table(name = "zjpjyj")
public class Zjpjyj implements java.io.Serializable
{

    private Long id;
    private int version;
    private Jbqk jbqk;
    private String username;
    private String operation;
    private Date optdate;
    private Long ny;
    private String pjrya;
    private String pjryb;
    private String cpyj;
    private String zyts;
    private String pdxydj;

    public Zjpjyj()
    {
    }

    public Zjpjyj( Long id )
    {
        this.id = id;
    }

    public Zjpjyj( Long id,
                   Jbqk jbqk,
                   String username,
                   String operation,
                   Date optdate,
                   Long ny,
                   String pjrya,
                   String pjryb,
                   String cpyj,
                   String zyts,
                   String pdxydj )
    {
        this.id = id;
        this.jbqk = jbqk;
        this.username = username;
        this.operation = operation;
        this.optdate = optdate;
        this.ny = ny;
        this.pjrya = pjrya;
        this.pjryb = pjryb;
        this.cpyj = cpyj;
        this.zyts = zyts;
        this.pdxydj = pdxydj;
    }

    @Id
    @Column(name = "ID", unique = true, nullable = false)
    @GeneratedValue(strategy=GenerationType.AUTO)
    public Long getId()
    {
        return this.id;
    }

    public void setId( Long id )
    {
        this.id = id;
    }

    @Version
    @Column(name = "version", nullable = false)
    public int getVersion()
    {
        return this.version;
    }

    public void setVersion( int version )
    {
        this.version = version;
    }

    @OneToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "jbq_ID")
    public Jbqk getJbqk()
    {
        return this.jbqk;
    }

    public void setJbqk( Jbqk jbqk )
    {
        this.jbqk = jbqk;
    }

    @Column(name = "username", length = 50)
    public String getUsername()
    {
        return this.username;
    }

    public void setUsername( String username )
    {
        this.username = username;
    }

    @Column(name = "operation", length = 20)
    public String getOperation()
    {
        return this.operation;
    }

    public void setOperation( String operation )
    {
        this.operation = operation;
    }

    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "optdate", length = 23)
    public Date getOptdate()
    {
        return this.optdate;
    }

    public void setOptdate( Date optdate )
    {
        this.optdate = optdate;
    }

    @Column(name = "ny")
    public Long getNy()
    {
        return this.ny;
    }

    public void setNy( Long ny )
    {
        this.ny = ny;
    }

    @Column(name = "pjrya", length = 10)
    public String getPjrya()
    {
        return this.pjrya;
    }

    public void setPjrya( String pjrya )
    {
        this.pjrya = pjrya;
    }

    @Column(name = "pjryb", length = 10)
    public String getPjryb()
    {
        return this.pjryb;
    }

    public void setPjryb( String pjryb )
    {
        this.pjryb = pjryb;
    }

    @Column(name = "cpyj", length = 2000)
    public String getCpyj()
    {
        return this.cpyj;
    }

    public void setCpyj( String cpyj )
    {
        this.cpyj = cpyj;
    }

    @Column(name = "zyts", length = 1024)
    public String getZyts()
    {
        return this.zyts;
    }

    public void setZyts( String zyts )
    {
        this.zyts = zyts;
    }

    @Column(name = "pdxydj", length = 5)
    public String getPdxydj()
    {
        return this.pdxydj;
    }

    public void setPdxydj( String pdxydj )
    {
        this.pdxydj = pdxydj;
    }

}
